package com.tianya.test.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("成功返回数据")
public class ResultModel {
    private static final long serialVersionUID = 1L;

    /**
     * 状态码
     */
    @ApiModelProperty(value = "状态码", required = true, position = 1, example = "200")
    private int code;

    /**
     * 返回内容
     */
    @ApiModelProperty(value = "消息", required = true, position = 2, example = "操作成功")
    private String msg;

    /**
     * 数据对象
     */
    @ApiModelProperty(value = "数据", required = true, position = 3, example = "数据")
    private Object data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
